package com.c8a.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.c8a.yygh.model.order.OrderInfo;
import com.c8a.yygh.vo.order.OrderCountQueryVo;
import com.c8a.yygh.vo.order.OrderQueryVo;

import java.util.Map;

/**
 * @Author C8A
 * @Date 2021-11-30 14:30
 * @Email 1912327276@qq.com
 */

public interface OrderService extends IService<OrderInfo> {
    //保存订单
    Long saveOrder(String scheduleId, Long patientId);

    //订单id查看订单详情
    OrderInfo getOrder(String orderId);

    //订单列表条件分页
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    //订单详情
    Map<String, Object> show(Long orderId);

    //取消订单
    Boolean cancelOrder(Long orderId);

    //就诊提醒
    void patientTips();

    //订单统计
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

}